﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true" CodeFile="WIN16_2E.aspx.cs" Inherits="IFRS_WIN16_2E" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Content/plugins/jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function () {
            $("#txtFinancialNameEN").on("keypress", function (event) {
                //var englishAlphabetAndWhiteSpace = /[A-Za-z0-9.*@#&!?<>{}()|\[\]\/\\ ]/g;
                var NotEnglish = /[^ก-๙]/g;
                var key = String.fromCharCode(event.which);
                if (event.keyCode == 8 || event.keyCode == 37 || event.keyCode == 39 || NotEnglish.test(key)) {
                    return true;
                }
                return false;
            });

            $('#txtFinancialNameEN').on("paste", function (e) {
                e.preventDefault();
            });

            $("#txtFinancialNameTH").on("keypress", function (event) {

                var NotThai = /[^A-Za-z]/g;

                var key = String.fromCharCode(event.which);
                if (event.keyCode == 8 || event.keyCode == 37 || event.keyCode == 39 || NotThai.test(key)) {
                    return true;
                }

                return false;
            });

            $('#txtFinancialNameTH').on("paste", function (e) {
                e.preventDefault();
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container-custom">
        <div class="table_master">
            <div class="table_detail">
                <div class="rowinfo">
                    <div class="collabel_single">
                        <asp:Label ID="lblTransactionDate" runat="server" Text="<%$Resources:ifrsField,DATE_TRANSACTION%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo_single">
                        <asp:TextBox ID="txtTransactionDate" CssClass="datepicker" SkinID="S_dateText"
                            runat="server" onblur="datebox_onblur( this, event );"></asp:TextBox>
                        <span class="red">*</span>
                        <asp:RequiredFieldValidator ID="reqTransactionDate" runat="server" ErrorMessage=""
                            ControlToValidate="txtTransactionDate" Display="Dynamic"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="rowinfo">
                    <div class="collabel_single">
                        <asp:Label ID="lblCounterPartyName" runat="server" Text="<%$Resources:ifrsField,CounterParty_Name%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo_single">
                        <asp:TextBox ID="txtCounterPartyName" SkinID="L_TextBoxWithNoColor" runat="server"></asp:TextBox>
                        <span class="red">*</span>
                        <asp:RequiredFieldValidator ID="reqCounterPartyName" runat="server" ErrorMessage=""
                            ControlToValidate="txtCounterPartyName" Display="Dynamic"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="rowinfo">
                    <div class="collabel_single">
                        <asp:Label ID="lblFinancialNameTH" runat="server" Text="<%$Resources:ifrsField,FinancialNameTH%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo_single">
                        <asp:TextBox ID="txtFinancialNameTH" SkinID="L_TextBoxWithNoColor" runat="server" AutoComplete="off" ClientIDMode="Static"></asp:TextBox>
                        <span class="red">*</span>
                        <asp:RequiredFieldValidator ID="reqFinancialNameTH" runat="server" ErrorMessage=""
                            ControlToValidate="txtFinancialNameTH" Display="Dynamic"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="rowinfo">
                    <div class="collabel_single">
                        <asp:Label ID="lblFinancialNameEN" runat="server" Text="<%$Resources:ifrsField,FinancialNameEN%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo_single">
                        <asp:TextBox ID="txtFinancialNameEN" SkinID="L_TextBoxWithNoColor" runat="server" AutoComplete="off" ClientIDMode="Static"></asp:TextBox>
                        <span class="red">*</span>
                        <asp:RequiredFieldValidator ID="reqFinancialNameEN" runat="server" ErrorMessage=""
                            ControlToValidate="txtFinancialNameEN" Display="Dynamic"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="rowinfo">
                    <div class="collabel_single">
                        <asp:Label ID="lblFinancialType" runat="server" Text="<%$Resources:ifrsField,FinancialTypeName%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo_single">
                        <asp:DropDownList ID="ddlFinancialType" runat="server" SkinID="L_DropDownListWithNoColor" />
                        <span class="red">*</span>
                        <asp:RequiredFieldValidator ID="reqFinancialType" runat="server" ErrorMessage=""
                            ControlToValidate="ddlFinancialType" Display="Dynamic"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="rowinfo">
                    <div class="collabel_single">
                        <asp:Label ID="lblPartyType" runat="server" Text="<%$Resources:ifrsField,PartyTypeName%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo_single">
                        <asp:DropDownList ID="ddlPartyType" runat="server" SkinID="L_DropDownListWithNoColor" />
                        <span class="red">*</span>
                        <asp:RequiredFieldValidator ID="reqPartyType" runat="server" ErrorMessage=""
                            ControlToValidate="ddlPartyType" Display="Dynamic"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="rowinfo">
                    <div class="collabel_single">
                        <asp:Label ID="lblGLAccountBondAdd" runat="server" Text="<%$Resources:ifrsField,GLAccountBondAdd%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo_single">
                        <asp:TextBox ID="txtGLAccountBondAdd" SkinID="TextBoxWithNoColor" runat="server"></asp:TextBox>
                        <span class="red">*</span>
                        <asp:RequiredFieldValidator ID="reqGLAccountBondAdd" runat="server" ErrorMessage=""
                            ControlToValidate="txtGLAccountBondAdd" Display="Dynamic"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="rowinfo">
                    <div class="collabel_single">
                        <asp:Label ID="lblGLAccountBondMinus" runat="server" Text="<%$Resources:ifrsField,GLAccountBondMinus%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo_single">
                        <asp:TextBox ID="txtGLAccountBondMinus" SkinID="TextBoxWithNoColor" runat="server"></asp:TextBox>
                        <span class="red">*</span>
                        <asp:RequiredFieldValidator ID="reqGLAccountBondMinus" runat="server" ErrorMessage=""
                            ControlToValidate="txtGLAccountBondMinus" Display="Dynamic"></asp:RequiredFieldValidator>
                    </div>
                </div>
            </div>
            <div class="colbtn">
                <asp:Button ID="btnSAVE" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,SAVE%>" OnClick="btnSAVE_Click" />&nbsp;
                <asp:Button ID="btnCANCEL" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,CANCEL%>" OnClick="btnCANCEL_Click" />
            </div>
        </div>
    </div>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="../Content/plugins/custom.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".datepicker").initDatepicker();
        });
    </script>
</asp:Content>